package com.play.ballen.synthetic.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.play.ballen.R
import com.play.ballen.synthetic.entity.SyntheticRecordInfo
import com.yuven.baselib.utils.ResourceUtil

class SyntheticRecordAdapter(data: MutableList<SyntheticRecordInfo>) :
    BaseQuickAdapter<SyntheticRecordInfo, BaseViewHolder>(R.layout.item_synthetic_record, data) {

    override fun convert(holder: BaseViewHolder, item: SyntheticRecordInfo) {
        holder.setText(R.id.tvLevelValue, item.name)
        holder.setText(
            R.id.tvNoValue,
            ResourceUtil.getString(R.string.home_property_no_text, item.no)
        )
        holder.setText(R.id.tvTimeValue, item.add_time)
    }

}